package ywxt.tool.stool.repository

import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Flux
import ywxt.tool.stool.entity.PoemEntity


interface PoemRepository : ReactiveMongoRepository<PoemEntity, String> {

    fun findAllByPoet_Id(poetId: String):Flux<PoemEntity>

    fun findAllByDynasty(dynasty:String):Flux<PoemEntity>


}